import useWsStore from '@/stores/ws.store';

const wsSend = (cmd: number, data: any) => {
  const wsStore = useWsStore();
  wsStore.ws!.send(JSON.stringify({ cmd, data }));
};

export default wsSend;
